import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;

public class Demo11 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("d:/test/AAA/test.txt",true)) {
            String s="你好世界";
            outputStream.write(s.getBytes());
            outputStream.write(97);

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    }
